CC=g++
CC_OPTS=-I../src
LD_OPTS=
LD_LIBS=
CFLAGS=-g
SOURCES = $(wildcard ./*.cpp)
OBJS=$(patsubst %.cpp, %.o, ${SOURCES})
add_SOURCES =../src/utils.cpp ../src/timestat.cpp
add_OBJS=$(notdir $(patsubst %.cpp, %.o, ${add_SOURCES}))

%.o:%.cpp
	$(CC) -Wall -c $< $(CC_OPTS) $(CFLAGS)
%.o:../src/%.cpp
	$(CC) -Wall -c $< $(CC_OPTS) $(CFLAGS)

target=case-test
$(info $(OBJS))
$(target): $(OBJS) $(add_OBJS)
	$(CC) -o $@ $(OBJS) $(add_OBJS) $(LD_OPTS) $(LD_LIBS)

clean:
	-rm -f ./$(target) ./*.o
